﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication8
{
    class Program
    {
        static void Main(string[] args)
        {
           // --------------- а) A OR В и В OR A;-------------

            int n = 0;
            int m = 1;
            
            Console.WriteLine('a'); 
            Console.WriteLine();

            for (n = 0; n <= 1; n++)
            {
                for (m = 0; m <= 1; m++)
                {
                    bool a = n == 0;
                    bool b = m == 1;
                    Console.Write(a);
                    Console.WriteLine(b);
                    Console.WriteLine(a | b == b | a);
                    Console.WriteLine();
                }
            }
               

            // ---------------- б) A AND В и В AND A; -------------

           /* Console.WriteLine('b');
            Console.WriteLine();


            for (n = 0; n <= 1; n++)
            {
                for (m = 0; m <= 1; m++)
                {
                    

                    Console.Write(n);
                    Console.WriteLine(m);
                    Console.WriteLine(a | b || b | a);
                    Console.WriteLine();



                }
            }*/
        }
    }
}
